import org.softmed.rest.generation.xml.PagedList;

pagedList = new PagedList();
pagedList.setupPage(false,list.size(), 1, baseURI);
pagedList.setObjects(list);